package com.easylinkin.linkappapi.operatelog.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.easylinkin.linkappapi.operatelog.entity.ObjectOperateLog;
import com.easylinkin.linkappapi.operatelog.mapper.ObjectOperateLogMapper;
import com.easylinkin.linkappapi.operatelog.service.ObjectOperateLogService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author liuming
 * @since 2020-05-07
 */
@Service
public class ObjectOperateLogServiceImpl extends ServiceImpl<ObjectOperateLogMapper, ObjectOperateLog> implements ObjectOperateLogService {


    @Override
    public boolean addLog(ObjectOperateLog objectOperateLog) {
        return save(objectOperateLog);
    }

    @Override
    public IPage<ObjectOperateLog> getPage(Page page, ObjectOperateLog operateLog) {

        return baseMapper.selectLogs(page, operateLog);
    }

}
